const api = '/api/orderFood'

export default {
  //点餐配置
  getSet: (...args) => uni.$request.post(`${api}/getSet`, ...args),
  //点餐列表
  getMenuList: (...args) => uni.$request.post(`${api}/getMenuList`, ...args),
  //点餐影城列表
  getCinemaList: (...args) =>
    uni.$request.post(`${api}/getCinemaList`, ...args),
  //我的点餐订单列表
  getOrderList: (...args) => uni.$request.post(`${api}/getOrderList`, ...args),
  //取消订单
  cancelOrder: (...args) => uni.$request.post(`${api}/cancelOrder`, ...args),
  //创建点餐订单
  createOrder: (...args) => uni.$request.post(`${api}/createOrder`, ...args),
  //确认点餐订单支付
  confirmPay: (...args) => uni.$request.post(`${api}/confirmPay`, ...args),

  //取消支付
  cancelPay: (...args) => uni.$request.post(`${api}/cancelPay`, ...args),
  //取餐时间下拉列表
  getFoodTimeTypeList: (...args) =>
    uni.$request.post(`${api}/getFoodTimeTypeList`, ...args),
  //点餐订单详情
  getOrderInfo: (...args) => uni.$request.post(`${api}/getOrderInfo`, ...args),

  //检测取餐时间
  checkFoodTime: (...args) =>
    uni.$request.post(`${api}/checkFoodTime`, ...args),
  //获取取餐通知消息模板id
  getTemplateOfOrderCompletedMsg: (...args) =>
    uni.$request.post(`${api}/getTemplateOfOrderCompletedMsg`, ...args),
  //点餐分类
  getClassification: (...args) =>
    uni.$request.post(`${api}/getClassification`, ...args)
}
